﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Text;
using Dapper;
using WeiXinPF.Common;
using WeiXinPF.DBUtility;
using WeiXinPF.Model;
using System.Data.SqlClient;
namespace WeiXinPF.DAL.travel
{
    public class wx_travel_setting
    {
        public Model.wx_travel_setting GetModel(int wid)
        {
            using (IDbConnection db = DbFactory.GetOpenedConnection())
            {
                return db.Query<Model.wx_travel_setting>("Select * From [dbo].[wx_travel_setting] Where wid=@wid",
                    new { wid = wid }
                ).FirstOrDefault();
            }
        }
    }
}
